package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.acticle.domain.Destination;
import cn.wolfcode.luowowo.acticle.query.DestinationQuery;
import cn.wolfcode.luowowo.acticle.query.DestinationThemeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> listByDeep(int deep);

    List<Destination> selectDestByIds(Long[] refIds);

    List<Destination> selectForList(DestinationQuery qo);

    List<Destination> selectDestByParentId(Long parentId);

    void updateHotValueById(@Param("id") Long id, @Param("hot") Long hot);

    List<Destination> selectDestByQo(DestinationThemeQuery qo);

    Destination selectDestByUserCity(String city);

    List<Destination> selectDestinationByMonth(Integer viewMonth);
}